<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="com.fick.hibernate.dao.*,java.util.*"%>
<%@page import="com.fick.hibernate.model.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <!-- head -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>滑县公安信息网</title>
<link href="images/hxgaj.css" rel="stylesheet" type="text/css" />
</head>
<!-- head -->
  <body> 
  <%
  	String idstr = request.getParameter("id");
  	int id = Integer.parseInt(idstr);
  	LinkDAO popDao = new LinkDAO();
  	PopWindow window = new PopWindow();
  	window = popDao.findPopById(id);
  	if(window != null){
  		String title = window.getTitle();
  		String content = window.getContent();
  		String url = window.getUrl();
  		int height = window.getHeight()-10; 
  		int width = window.getWidth()-20;
	if(url.trim().equals("")){
 %>
 <table align="center" width='<%=width %>' height='<%=height %>' cellspacing="0" cellpadding="0" border="0">
<tr height="40">
 <td class="dhwz2" align="center"><%=title %></td></tr>
 <tr>
<td valign="top"><%=content %></td></tr>
</table>	
 <%
 } else{ 
  %>
  <table align="center" width='<%=width %>' height='<%=height %>' cellspacing="0" cellpadding="0" border="0">
<tr height="40">
<td class="dhwz2" align="center">
<a href="<%=url %>" target="_blank" onClick="window.close();"><%=title %></a>
</td></tr>
<tr>
<td valign="top"><a href="<%=url %>" target="_blank" onClick="window.close();"><%=content %></a></td></tr>
</table>	  		
   <%
   }
  	}
   %> </body>
</html>
